cmake_minimum_required(VERSION 3.16)
project(While)

set(var 10)
while(var GREATER 0)
	message("var = ${var}")
	math(EXPR var "${var}-1")
	if(var LESS 3)
		message("break()")
		break()
	endif()
	if(var EQUAL 5)
		message("continue()")
		math(EXPR var "${var}-1")
		continue()
	endif()
endwhile()
